﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FreeSql.DataAnnotations;
using FreeSqlExtensions;
using Newtonsoft.Json;

namespace LightLog.Entity
{
    /// <summary>
    /// 用户表
    /// </summary>
    [JsonObject(MemberSerialization.OptIn)]
    [Table(Name = "User")]
    [Serializable]
    public partial class User : SnowflakEntity
    {
        /// <summary>
        /// 用户名
        /// </summary>
        [Column(StringLength = 50)]
        public string UserName { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        [Column(StringLength = 50)]
        public string Pwd { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [Column(StringLength = 500)]
        public string Remark { get; set; }

        /// <summary>
        /// 是否为管理员
        /// </summary>
        public bool IsAdmin { get; set; } = false;

        /// <summary>
        /// 创建日期
        /// </summary>
        public DateTime CreateTime { get; set; }=DateTime.Now;

    }
}
